package com.cn.demo.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {

    public static String format(Date date,String format){
        SimpleDateFormat sf=new SimpleDateFormat(format);
        return sf.format(date);
    }
}
